home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
network
/
net_co41.zip
/
netcont_.exe
/
MENU-BOX.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-03-31
|
7KB
|
245 lines
@ECHO OFF
REM ---------------------------------------------------------------------
REM Batch programm as a menu for calling all programs written for
REM the Ethernet Box
REM (C) RzK Doris Köpke 02/94
REM
REM Calling this file with commandline parameters:
REM 1) NET-MENU GO
REM Net-Control is started at once and begins with the data
REM sampling process automatically
REM 2) NET-MENU GO STOP
REM Additionally to 1) Net-Control is stopped daily to start the
REM batch programm TESTDISK.BAT. This checks the logical structure
REM of the harddisk and starts Net-Control again, if no error is
REM detected.
REM 3) NET-MENU {program} [{parameter_list}]
REM The specified programm is started directly.
REM E.g.: "NET-MENU EAK-TERM LPT1:"
REM ---------------------------------------------------------------------
IF "%1x"=="x" GOTO START
IF "%1"=="GO" GOTO NET-START
IF "%1"=="go" GOTO NET-START
%1 %2 %3 %4 %5 %6 %7 %8 %9
:START
BLUE
@ECHO OFF
ECHO ╔═════════════════════════════════════════════════╦═══════════════════════════╗
ECHO ║ ETHERNET BOX II software selection menu ║ (C) RzK Doris Köpke 10/92 ║
ECHO ╠═════════════════════════════════════════════════╩═══════════════════════════╣
ECHO ║ (Select program by input of specified character:) ║
ECHO ╟─────────────────────────────────────┬───────────────────────────────────────╢
ECHO ║ 1 - Terminal COM1 9600 Baud │ 6 - Net-Control ║
ECHO ║ │ ║
ECHO ║ 2 - Terminal LPT1 │ 7 - Net-Control with daily test of ║
ECHO ║ │ the logical harddiskstructure ║
ECHO ║ 3 - Ethernet Box configuration │ 8 - Erroranalysis ║
ECHO ║ │ ║
ECHO ║ 4 - Bridge configuration │ 9 - SNMP Monitor ║
ECHO ║ │ ║
ECHO ║ 5 - Send packets │ ║
ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
ECHO ║ D - View files in current directory │ S - Save Net-Control configuration ║
ECHO ║ │ and all *.SDF files ║
ECHO ╟─────────────────────────────────────┼───────────────────────────────────────╢
ECHO ║ N - Read new version of Net-Control │ R - Register Net-Control ║
ECHO ║ from floppy │ C - Configure Packet Driver ║
ECHO ║ M - New version of utility disk │ E - End ║
ECHO ╠═════════════════════════════════════╧═══════════════════════════════════════╣
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
KEY 123456789SENMRDC Selection :
IF ERRORLEVEL 16 GOTO P-SETUP
IF ERRORLEVEL 15 GOTO VNDIR
IF ERRORLEVEL 14 GOTO REGIST
IF ERRORLEVEL 13 GOTO NEW-EAK-UTIL
IF ERRORLEVEL 12 GOTO NEW-NET-CONT
IF ERRORLEVEL 11 GOTO ENDE
IF ERRORLEVEL 10 GOTO SAV-SDF
IF ERRORLEVEL 9 GOTO NET-MON
IF ERRORLEVEL 8 GOTO NET-ANA
IF ERRORLEVEL 7 GOTO NET-C-TD
IF ERRORLEVEL 6 GOTO NET-CONT
IF ERRORLEVEL 5 GOTO EAK-PKT
IF ERRORLEVEL 4 GOTO BR-KONF
IF ERRORLEVEL 3 GOTO EAK-KONF
IF ERRORLEVEL 2 GOTO TERM-LPT1
IF ERRORLEVEL 1 GOTO TERM-COM1
IF ERRORLEVEL 0 GOTO ENDE
GOTO ENDE
:TERM-COM1
IF NOT EXIST EAK-TERM.EXE GOTO INST-UTIL
EAK-TERM COM1 9600
GOTO START
:TERM-LPT1
IF NOT EXIST EAK-TERM.EXE GOTO INST-UTIL
EAK-TERM LPT1
GOTO START
:EAK-KONF
IF NOT EXIST EAK-KONF.EXE GOTO INST-UTIL
EAK-KONF
GOTO START
:BR-KONF
IF NOT EXIST BR-KONF.EXE GOTO INST-UTIL
BR-KONF
GOTO START
:EAK-PKT
IF NOT EXIST EAK-PKT.EXE GOTO INST-UTIL
EAK-PKT
GOTO START
:NET-CONT
CALL NC-START
ECHO.
ECHO.
PAUSE
GOTO START
:NET-START
IF "%2"=="stop" GOTO NET-C-TD
IF "%2"=="STOP" GOTO NET-C-TD
CALL NC-START GO
GOTO START
:NET-C-TD
CALL TESTDISK.BAT
GOTO START
:SAV-SDF
IF NOT EXIST ADRESSEN.SDF GOTO SAV-ERROR
MD SDF-SAVE > nul
COPY *.SDF SDF-SAVE > nul
COPY *.CFG SDF-SAVE > nul
REN *.SDF *.S$F > nul
COPY SDF-SAVE\*.SDF > nul
DEL *.S$F > nul
ECHO.
ECHO The configuration has been saved to a local subdirectory.
ECHO.
ECHO Additional save it to a floppy disk ? (Y/N) :
KEY YN
IF ERRORLEVEL 2 GOTO START
ECHO Save to which drive (A,B) :
KEY AB
IF ERRORLEVEL 2 GOTO DRV-B
IF ERRORLEVEL 1 GOTO DRV-A
GOTO START
:DRV-A
COPY *.CFG A: > nul
COPY *.SDF A: > nul
ECHO.
ECHO Net-Control configuration saved to drive A:.
ECHO.
PAUSE
GOTO START
:DRV-B
COPY *.CFG B: > nul
COPY *.SDF B: > nul
ECHO.
ECHO Net-Control configuration saved to drive B:.
PAUSE
GOTO START
GOTO START
:SAV-ERROR
SOUND TUUT TUUT
ECHO.
ECHO ╔═════════════════════════════════════════════════════════════════════════════╗
ECHO ║ Before you can save your configuration files, you have ║
ECHO ║ to adjust Net-Control to your network. ║
ECHO ║ At least define an addresslist of known addresses in ║
ECHO ║ the file ADRESSEN.SDF. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
ECHO.
PAUSE
GOTO START
:NET-ANA
NET-ANA
GOTO START
:NET-MON
IF NOT EXIST NET-MON.EXE GOTO INST-UTIL
NET-MON
GOTO START
:INST-UTIL
SOUND KLICK TUUT KLICK
ECHO.
ECHO ╔═════════════════════════════════════════════════════════════════════════════╗
ECHO ║ Before you can call this program, you have to install ║
ECHO ║ the software of the Ethernet Box utility disk to the ║
ECHO ║ current directory! ║
ECHO ╚═════════════════════════════════════════════════════════════════════════════╝
ECHO.
ECHO.
ECHO Do you want to install this software now? (Y/N) :
KEY YN
IF ERRORLEVEL 2 GOTO START
:NEW-EAK-UTIL
ECHO In which drive is the disk with the Ethernet Box utilities (A,B) :
KEY AB
IF ERRORLEVEL 2 GOTO DRIVE-B
IF ERRORLEVEL 1 GOTO DRIVE-A
GOTO START
:DRIVE-A
A:EAK-UTIL
PAUSE
GOTO START
:DRIVE-B
B:EAK-UTIL
PAUSE
GOTO START
:NEW-NET-CONT
ECHO In which drive is the disk with the new Net-Control version (A,B) :
KEY AB
IF ERRORLEVEL 2 GOTO DRIV-B
IF ERRORLEVEL 1 GOTO DRIV-A
GOTO START
:DRIV-A
A:INSTALL
PAUSE
GOTO START
:DRIV-B
B:INSTALL
PAUSE
GOTO START
:REGIST
ECHO In which drive is the disk with the Net-Control authentisationcode ?
ECHO Please enter a "-", if you don't have that disk at hand. (A,B,-) :
KEY AB-
IF ERRORLEVEL 3 GOTO REG-HERE
IF ERRORLEVEL 2 GOTO REG-B
IF ERRORLEVEL 1 GOTO REG-A
GOTO START
:REG-A
NET-SNAP A:
GOTO START
:REG-B
NET-SNAP B:
GOTO START
:REG-HERE
NET-SNAP
GOTO START
:VNDIR
IF NOT EXIST VNDIR.EXE GOTO INST-UTIL
VNDIR
GOTO START
:P-SETUP
P-SETUP
GOTO START
:ENDE